package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Mr_Su
 * @version v1.0
 * @date 2022/6/27 20:52
 * @desciption
 */
@FeignClient(value = "leadnews-article")
public interface ArticleFeign {

    @PostMapping("/api/v1/author") // 保存文章作者
    public ResponseResult<ApAuthor> saveApAuthor(@RequestBody ApAuthor apAuthor);
}
